package com.etoak.service;

import com.etoak.common.core.vo.PageVO;
import com.etoak.common.core.vo.ResultVO;
import com.etoak.entity.Dishes;
import com.baomidou.mybatisplus.extension.service.IService;
import com.etoak.vo.DishesVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author etoak
 * @since 2025-06-30
 */
public interface DishesService extends IService<Dishes> {
    Dishes getByName(String name);

    ResultVO add(Dishes dishes);

    ResultVO<PageVO<DishesVO>> getList(int pageNum,int pageSize,Dishes dishes);

    ResultVO updateDishes(Integer id, Dishes dishes);

    ResultVO deleteDishes(Integer id);
}
